
import { v4 as uuidv4 } from 'uuid'
export default [
 
      {
        id: uuidv4(),
        name: '地质图层',
        icon: '',
        checked: false,
        expanded: false,
        renderingType: 'imagery',
        children: [
      
              {
                type: 'Feature',
                properties: {
                  id: uuidv4(),
                  checked: true,
                  name: '地质图',
                  renderingType: 'imagery',
                  props: {
                    imagery: {
                      alpha: 1,
                      brightness: 1,
                      contrast: 1,
                       children: [
                        {
                          props: {
                            url: '/geoserver/myGeoserver/wms',
                            parameters: {
                              transparent: true,
                              format: "image/png",
                              srs: "EPSG:4326"
                            },
                            layers: "myGeoserver:dz84",
                          }
                        }
                      ]
                    }
                  }
                },
              },
              {
                type: 'Feature',
                properties: {
                  id: uuidv4(),
                  checked: false,
                  name: '矿化度',
                  renderingType: 'imagery',
                  props: {
                    imagery: {
                      alpha: 1,
                      brightness: 1,
                      contrast: 1,
                       children: [
                        {
                          props: {
                            url: '/geoserver/myGeoserver/wms',
                            parameters: {
                              transparent: true,
                              format: "image/png",
                              srs: "EPSG:4326"
                            },
                            layers: "myGeoserver:khd84",
                          }
                        }
                      ]
                    }
                  }
                },
              },

          // 自然资源监测
          // {
          //   id: uuidv4(),
          //   name: '水资源',
          //   label: '水资源',
          //   icon: '',
          //   expanded: false,
          //   renderingType: 'geojson',
          //   children: [
             
                  {
                    type: 'Feature',
                    properties: {
                      id: uuidv4(),
                      name: '水源地',
                      checked: true,
                      renderingType: 'geojson',
                      props: {
                        data: '/geojson/syd84.json',
                        fill: 'rgba(0, 255, 0, 0.3)',
                        stroke: 'rgba(255, 255, 0, 0.6)',
                        strokeWidth: 5.0,
                        clampToGround: true,
                      },
                      billboardProps: {
                        image: '/images/layers/地类图斑.png',
                        scale: 0.8,
                        width: 56,
                        height: 68,
                        showLabel: true
                      },
                      selectedProps: {
                        geojson: {
                          fill: 'rgba(231, 89, 12, 0.4)',
                        }
                      },
                    },
                    geometry: {
                      coordinates: [117.2618, 34.195812],
                      type: 'Point'
                    },
                  },
              //   ]
              // },
        ]
      },
]

